Platform Explorer / Nuxeo Platform 2021

Contribution org.nuxeo.ecm.webapp.info.view--layouts

This contribution is part of XML component org.nuxeo.ecm.webapp.info.view inside nuxeo-platform-webapp-core-2021.1.jar /OSGI-INF/info-view-layouts-contrib.xml

Extension Point

Extension point layouts of component WebLayoutManager.

Registration Order

22
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <layout name="gridInfoViewLayout">
          <templates>
            <template mode="any">
              /layouts/layout_grid_template.xhtml
            </template>
          </templates>
          <rows>
            <row>
              <widget>infoViewPanelLeft</widget>
              <widget>infoViewPanelRight</widget>
            </row>
          </rows>
        </layout>
  • <layout name="defaultInfoLayout@tabLayout">
          <templates>
            <template mode="any">
              /layouts/layout_grid_template.xhtml
            </template>
          </templates>
          <rows>
            <row>
              <widget>infoViewInfoBox</widget>
            </row>
            <row>
              <widget>infoViewMetadata</widget>
            </row>
            <row>
              <widget>infoViewWorkflow</widget>
            </row>
            <row>
              <widget>infoViewTags</widget>
            </row>
            <row>
              <widget>infoViewCollections</widget>
            </row>
            <row>
              <widget>infoViewComments</widget>
            </row>
          </rows>
          <widget name="infoViewInfoBox" type="container">
            <subWidgets>
              <widget name="infoBox" type="info_box"/>
            </subWidgets>
            <properties widgetMode="any">
              <property name="hideSubLabels">true</property>
            </properties>
            <controls mode="any">
              <control name="gridStyleClass">gridStyle12</control>
            </controls>
          </widget>
          <widget name="infoViewMetadata" type="container">
            <labels>
              <label mode="any">action.view.metadata</label>
            </labels>
            <translated>true</translated>
            <subWidgets>
              <widget name="metadata" type="documentLayout">
                <properties widgetMode="view">
                  <property name="mode">view</property>
                  <property name="documentMode">view</property>
                  <property name="includeAnyMode">false</property>
                </properties>
                <controls mode="any">
                  <control name="requireSurroundingForm">true</control>
                </controls>
              </widget>
            </subWidgets>
            <controls mode="any">
              <control name="handleLabels">true</control>
              <control name="gridStyleClass">gridStyle12</control>
            </controls>
            <properties widgetMode="any">
              <property name="hideSubLabels">true</property>
            </properties>
          </widget>
          <widget name="infoViewWorkflow" type="container">
            <labels>
              <label mode="any">label.document.routing.workflow</label>
            </labels>
            <translated>true</translated>
            <subWidgets>
              <widget name="workflow" type="summary_document_route">
                <controls mode="any">
                  <control name="requireSurroundingForm">true</control>
                </controls>
              </widget>
            </subWidgets>
            <controls mode="any">
              <control name="handleLabels">true</control>
              <control name="gridStyleClass">gridStyle12</control>
            </controls>
            <properties widgetMode="any">
              <property name="hideSubLabels">true</property>
            </properties>
            <widgetModes>
              <mode value="view">#{routingActions.filteredRouteModels.size() &gt; 0 ?
                'view' : 'hidden'}</mode>
            </widgetModes>
          </widget>
          <widget name="infoViewTags" type="container">
            <labels>
              <label mode="any">action.view.tagging</label>
            </labels>
            <translated>true</translated>
            <subWidgets>
              <widget name="tags" type="summary_current_document_tagging">
                <controls mode="any">
                  <control name="requireSurroundingForm">true</control>
                </controls>
                <properties widgetMode="any">
                  <property name="placeholder">
                    #{messages['label.add.tag.placeholder']}
                  </property>
                </properties>
              </widget>
            </subWidgets>
            <controls mode="any">
              <control name="handleLabels">true</control>
              <control name="gridStyleClass">gridStyle12</control>
            </controls>
            <properties widgetMode="any">
              <property name="hideSubLabels">true</property>
            </properties>
          </widget>
          <widget name="infoViewCollections" type="container">
            <labels>
              <label mode="any">label.collections</label>
            </labels>
            <translated>true</translated>
            <subWidgets>
              <widget name="collections" type="summary_current_document_collections"/>
            </subWidgets>
            <controls mode="any">
              <control name="handleLabels">true</control>
              <control name="gridStyleClass">gridStyle12</control>
            </controls>
            <properties widgetMode="any">
              <property name="hideSubLabels">true</property>
            </properties>
            <widgetModes>
              <mode value="view">#{collectionActions.hasCurrentDocumentVisibleCollection()
                ? 'view' : 'hidden'}</mode>
            </widgetModes>
          </widget>
          <widget name="infoViewComments" type="container">
            <labels>
              <label mode="any">#{nxu:translate('label.summary.comments',
                documentThreadedComments.size)}</label>
            </labels>
            <translated>false</translated>
            <subWidgets>
              <widget name="comments" type="summary_current_document_comments">
                <controls mode="any">
                  <control name="requireSurroundingForm">true</control>
                </controls>
              </widget>
            </subWidgets>
            <controls mode="any">
              <control name="handleLabels">true</control>
              <control name="gridStyleClass">gridStyle12</control>
            </controls>
            <properties widgetMode="any">
              <property name="hideSubLabels">true</property>
            </properties>
            <widgetModes>
              <mode value="view">#{documentThreadedComments.size() &gt; 0 ? 'view' :
                'hidden'}</mode>
            </widgetModes>
          </widget>
        </layout>

XML Source

<extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <layout name="gridInfoViewLayout">
      <templates>
        <template mode="any">
          /layouts/layout_grid_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>infoViewPanelLeft</widget>
          <widget>infoViewPanelRight</widget>
        </row>
      </rows>
    </layout>

    <layout name="defaultInfoLayout@tabLayout">
      <templates>
        <template mode="any">
          /layouts/layout_grid_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>infoViewInfoBox</widget>
        </row>
        <row>
          <widget>infoViewMetadata</widget>
        </row>
        <row>
          <widget>infoViewWorkflow</widget>
        </row>
        <row>
          <widget>infoViewTags</widget>
        </row>
        <row>
          <widget>infoViewCollections</widget>
        </row>
        <row>
          <widget>infoViewComments</widget>
        </row>
      </rows>
      <widget name="infoViewInfoBox" type="container">
        <subWidgets>
          <widget name="infoBox" type="info_box"/>
        </subWidgets>
        <properties widgetMode="any">
          <property name="hideSubLabels">true</property>
        </properties>
        <controls mode="any">
          <control name="gridStyleClass">gridStyle12</control>
        </controls>
      </widget>
      <widget name="infoViewMetadata" type="container">
        <labels>
          <label mode="any">action.view.metadata</label>
        </labels>
        <translated>true</translated>
        <subWidgets>
          <widget name="metadata" type="documentLayout">
            <properties widgetMode="view">
              <property name="mode">view</property>
              <property name="documentMode">view</property>
              <property name="includeAnyMode">false</property>
            </properties>
            <controls mode="any">
              <control name="requireSurroundingForm">true</control>
            </controls>
          </widget>
        </subWidgets>
        <controls mode="any">
          <control name="handleLabels">true</control>
          <control name="gridStyleClass">gridStyle12</control>
        </controls>
        <properties widgetMode="any">
          <property name="hideSubLabels">true</property>
        </properties>
      </widget>
      <widget name="infoViewWorkflow" type="container">
        <labels>
          <label mode="any">label.document.routing.workflow</label>
        </labels>
        <translated>true</translated>
        <subWidgets>
          <widget name="workflow" type="summary_document_route">
            <controls mode="any">
              <control name="requireSurroundingForm">true</control>
            </controls>
          </widget>
        </subWidgets>
        <controls mode="any">
          <control name="handleLabels">true</control>
          <control name="gridStyleClass">gridStyle12</control>
        </controls>
        <properties widgetMode="any">
          <property name="hideSubLabels">true</property>
        </properties>
        <widgetModes>
          <mode value="view">#{routingActions.filteredRouteModels.size() &gt; 0 ?
            'view' : 'hidden'}</mode>
        </widgetModes>
      </widget>
      <widget name="infoViewTags" type="container">
        <labels>
          <label mode="any">action.view.tagging</label>
        </labels>
        <translated>true</translated>
        <subWidgets>
          <widget name="tags" type="summary_current_document_tagging">
            <controls mode="any">
              <control name="requireSurroundingForm">true</control>
            </controls>
            <properties widgetMode="any">
              <property name="placeholder">
                #{messages['label.add.tag.placeholder']}
              </property>
            </properties>
          </widget>
        </subWidgets>
        <controls mode="any">
          <control name="handleLabels">true</control>
          <control name="gridStyleClass">gridStyle12</control>
        </controls>
        <properties widgetMode="any">
          <property name="hideSubLabels">true</property>
        </properties>
      </widget>
      <widget name="infoViewCollections" type="container">
        <labels>
          <label mode="any">label.collections</label>
        </labels>
        <translated>true</translated>
        <subWidgets>
          <widget name="collections" type="summary_current_document_collections"/>
        </subWidgets>
        <controls mode="any">
          <control name="handleLabels">true</control>
          <control name="gridStyleClass">gridStyle12</control>
        </controls>
        <properties widgetMode="any">
          <property name="hideSubLabels">true</property>
        </properties>
        <widgetModes>
          <mode value="view">#{collectionActions.hasCurrentDocumentVisibleCollection()
            ? 'view' : 'hidden'}</mode>
        </widgetModes>
      </widget>
      <widget name="infoViewComments" type="container">
        <labels>
          <label mode="any">#{nxu:translate('label.summary.comments',
            documentThreadedComments.size)}</label>
        </labels>
        <translated>false</translated>
        <subWidgets>
          <widget name="comments" type="summary_current_document_comments">
            <controls mode="any">
              <control name="requireSurroundingForm">true</control>
            </controls>
          </widget>
        </subWidgets>
        <controls mode="any">
          <control name="handleLabels">true</control>
          <control name="gridStyleClass">gridStyle12</control>
        </controls>
        <properties widgetMode="any">
          <property name="hideSubLabels">true</property>
        </properties>
        <widgetModes>
          <mode value="view">#{documentThreadedComments.size() &gt; 0 ? 'view' :
            'hidden'}</mode>
        </widgetModes>
      </widget>
    </layout>

  </extension>